import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const personnel: AppRouteRecordRaw = {
  path: '/personnel',
  name: 'personnel',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.personnel',
    requiresAuth: true,
    icon: 'icon-dashboard',
    roles: ['admin'],
    order: 3,
  },
  children: [
    {
      path: 'personnelList',
      name: 'personnelList',
      component: () => import('@/views/personnel/index.vue'),
      meta: {
        locale: 'menu.personnel.personnelList',
        requiresAuth: true,
        customIcon: true,
        icon: 'icon-user-group-custom',
        roles: ['admin'],
      },
    },
    {
      path: 'addPersonnel',
      name: 'addPersonnel',
      component: () => import('@/views/personnel/add-personnel.vue'),
      meta: {
        hideInMenu: true,
        locale: 'menu.personnel.addPersonnel',
        requiresAuth: true,
        customIcon: true,
        icon: 'icon-user-group-custom',
        roles: ['admin'],
      },
    },
    {
      path: 'editPersonnel',
      name: 'editPersonnel',
      component: () => import('@/views/personnel/edit-personnel.vue'),
      meta: {
        hideInMenu: true,
        locale: 'menu.personnel.editPersonnel',
        requiresAuth: true,
        customIcon: true,
        icon: 'icon-user-group-custom',
        roles: ['admin'],
      },
    },
  ],
};

export default personnel;
